home *** CD-ROM | disk | FTP | other *** search
- package Local.Game.Thing
- {
- import Local.Game.World.CPosition;
-
- public class CVehicleTruckFlatbed extends CVehicle
- {
-
-
- private var mTrackSoundID:String;
-
- public function CVehicleTruckFlatbed(param1:CPosition)
- {
- super(param1);
- mType = "truckflatbed";
- Process = Process_Normal;
- mMaxSpeed = (15 + Math.random() * 4) * mSpriteScalar * mEnemySpeed;
- mSpeed = 0;
- §§push(§§findproperty(mAcceleration));
- §§push(0.1);
- if(true)
- {
- §§push(§§pop() * mEnemySpeed);
- }
- §§pop().mAcceleration = §§pop();
- mOrientation = -1;
- mMaxLife = mLife = 200;
- AddAnimation("stand",TruckFlatbed,"AddSprite_Black");
- SetCollisionBySprite(mAnimation[0]);
- CompileNodes();
- IncrementBuild();
- }
-
- override public function Dispose() : void
- {
- if(true)
- {
- if(mDisposed)
- {
- if(true)
- {
- return;
- }
- }
- super.Dispose();
- }
- }
-
- override public function Draw() : void
- {
- if(true)
- {
- super.Draw();
- DrawSprite(GetOrientationMatrix());
- }
- }
-
- public function Process_Normal() : void
- {
- var _loc1_:* = false;
- if(Process_State != null)
- {
- Process_State();
- }
- VehicleMove();
- if(mDisposed)
- {
- return;
- }
- mCollide.Update();
- §§push(mDead);
- if(true)
- {
- _loc1_ = §§pop();
- if(GetThings_Distance(60,1).length)
- {
- _loc1_ = true;
- }
- §§push(_loc1_);
- }
- if(§§pop())
- {
- AddThing(new CEffectExplosionLarge(mPosition.Clone()));
- DispatchDispose();
- }
- }
-
- override public function get mPrize() : int
- {
- return CPeepM16.mCost * 10;
- }
-
- override public function get mBaseDamage() : Number
- {
- return 200;
- }
- }
- }
-